package com.culture.config.common.util;

import java.util.Date;

import lombok.experimental.UtilityClass;

@UtilityClass
public class DateTimeUtil {

    /**
     * @param dt (Date)
     * @param expiredTime (milliseconds)
     * @return expiredTime + dt < Now()
     **/
    public boolean isTimeExpired(Date dt, long expiredTime){
        Date nt = new Date();
        return dt.getTime() + expiredTime < nt.getTime();
    }
    
}
